FROM node:18.17.1

WORKDIR /usr/src/app

COPY package*.json ./
# set npm mirror
RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ && \
    npm install
COPY . ./

EXPOSE 3000

CMD npm run start